{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试管理平台</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-5.3.0/css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'bootstrap-icons.min.css' %}"> <!--  引用bootstrap字体图标，前面不用加后缀 -->
    <link rel="shortcut icon" href="{% static  'img/591.ico'%}"/>
    {% block link %} {% endblock%}

    <style>
        {% block css %}
        {% endblock%}


    </style>
</head>

<body>
<nav class="navbar navbar-expand-lg  navbar-dark bg-dark">
    <div class="container">
        <a class="navbar-brand" href="#"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">管理平台</font></font></a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="切换导航">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNavDropdown">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link {% if request.path_info == '/depart_list/' %} active {% endif %} " aria-current="page" href="/depart_list/"><font style="vertical-align: inherit;"><font
                            style="vertical-align: inherit;">部门管理</font></font></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link {% if request.path_info == '/user_list/' %} active {% endif %} " href="/user_list/"><font style="vertical-align: inherit;"><font
                            style="vertical-align: inherit;">用户管理</font></font></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">靓号管理</font></font></a>
                </li>
            </ul>


            <ul class="navbar-nav">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"><font style="vertical-align: inherit;"><font
                            style="vertical-align: inherit;">
                        {{ request.session.info.name }}
                    </font></font></a>
                    <ul class="dropdown-menu">
                        <li><a class="dropdown-item" href="#"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">个人资料</font></font></a></li>
                        <li><a class="dropdown-item" href="#"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">我的信息</font></font></a></li>
                        <li>
                            <hr class="dropdown-divider">
                        </li>
                        <li><a class="dropdown-item" href="#"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">注销</font></font></a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>

<div class="container">
    {% block content %}{% endblock %}
</div>

<script src="https://unpkg.com/@popperjs/core@2.11.8/dist/umd/popper.min.js"></script>
<script src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
<script src="{% static 'plugins/bootstrap-5.3.0/js/bootstrap.min.js' %}"></script>
{% block js %}{% endblock %}
</body>
</html>